<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>一键更新</title>
<link type="text/css" rel="stylesheet" href="main.css"/>
<script src="jquery.js" language="javascript" type="text/javascript"></script>
<script src="base.js" language="javascript" type="text/javascript"></script>
<script language='javascript'>
function SelUp(){
   var ob1 = document.getElementById("uptype1");
   var ob2 = document.getElementById("uptype2");
   var ob3 = document.getElementById("uptype3");
   if(ob1.checked){
      document.getElementById("seltime").style.display = "block";
	  document.getElementById("selid").style.display = "none";
   }else if(ob2.checked){
      document.getElementById("seltime").style.display = "none";
	  document.getElementById("selid").style.display = "block";
   }else{
      document.getElementById("seltime").style.display = "none";
	  document.getElementById("selid").style.display = "none";
   }
   if(ob1.checked){
      document.getElementById("seltime").style.display = "table-row";
	  document.getElementById("selid").style.display = "none";
   }else if(ob2.checked){
      document.getElementById("seltime").style.display = "none";
	  document.getElementById("selid").style.display = "table-row";
   }else{
      document.getElementById("seltime").style.display = "none";
	  document.getElementById("selid").style.display = "none";
   }
}
</script>

</head>
<body>
<div class="mtitle">
  <div class="lbox">一键更新网站 </div>
</div>
<table _dlist="line check" class="tlist" align="center">
  <form name="form1" action="makehtml_all.php" target="stafrm" method="post">
  <input type="hidden" name="action" value="make" />
<tbody>
    <tr>
      <td width="30%" height="30"  bgcolor="#FFFFFF">&nbsp;&nbsp;更新选项：</td>
      <td width="70%" valign="top" bgcolor="#FFFFFF">
	   <input name="uptype" id="uptype1" type="radio" class="np" value="time" onClick="SelUp()" checked="checked"/>
	   <label for="uptype1">指定时间的所有更新</label>
	   <input name="uptype" id="uptype2" type="radio" class="np" onClick="SelUp()" value="id" />
	   <label for="uptype2">指定ID文档的所有更新</label>
	   <input name="uptype" id="uptype3" type="radio" class="np" onClick="SelUp()" value="mkall" />
	   <label for="uptype3">更新所有</label>
	   </td>
    </tr>
    <tr id='seltime'>
      <td height="20"  bgcolor="#FFFFFF" width="30%">&nbsp;&nbsp;起始时间：</td>
      <td height="20"  bgcolor="#FFFFFF">
      	<input name="starttime" type="text" class="txt" id="starttime" style="width:200px" value="<?php echo GetDateMk(time()); ?>" />
      </td>
    </tr>
    <tr id='selid' style='display:none'>
      <td height="20" bgcolor="#FFFFFF" width="30%"><p>&nbsp;&nbsp;起始ID：</p></td>
      <td height="20" bgcolor="#FFFFFF">
      	<p><input name="startid" type="text" class="txt" id="startid" value="0" size="4" /></p>
      </td>
    </tr>
	   <tr>
      <td height="31" colspan="2" bgcolor="#F8FBFB" align="center" style="padding-top:6px">
      <button type="submit" class="btn1">开始更新</button>
      </td>
    </tr>
  </form>
  <tr bgcolor="#F7FAF3">
    <td height="20" colspan="2" bgcolor="#F7FAF3">
    <table width="100%">
     <tr>
      <td width="74%">进行状态： </td>
       <td width="26%" align="right">
		    <script language='javascript'>
            	function ResizeDiv(obj,ty)
            	{
            		if(ty=="+") document.all[obj].style.pixelHeight += 50;
            		else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
            	}
            	</script>
            [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]          </td>
        </tr>
      </table>
     </td>
   </tr>
   <tr bgcolor="#FFFFFF">
    <td colspan="2" id="mtd">
	  <div id='mdv' style='width:100%;height:350px;'>
      <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="350px"></iframe>
   </div>
   <script language="JavaScript">
	  document.all.mdv.style.pixelHeight = screen.height - 360;
	  </script>
   </td>
  </tr>
</tbody>
</table>
</body>
</html>